// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:54:25


// Source File Name:   rx.java

package com.zelix;


public class rx
    implements Comparable
{

    private int a;
    private Object b;

    public rx(int i, Object obj)
    {
        a = i;
        b = obj;
    }

    public int compareTo(Object obj)
    {
        rx rx1 = (rx)obj;
        if(a < rx1.a)
            return -1;
        if(a == rx1.a)
        {
            if((b instanceof Comparable) && (rx1.b instanceof Comparable))
                return ((Comparable)b).compareTo((Comparable)rx1.b);
            else
                return 0;
        } else
        {
            return 1;
        }
    }

    public final int a()
    {
        return a;
    }

    public final Object b()
    {
        return b;
    }
}